//
//  CoreDataManager.h
//  CoreData
//
//  Created by Lee on 15/12/25.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface CoreDataManager : NSObject

//数据管理器
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//数据模型器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//数据链接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//保存本地
- (void)saveContext;
//找到本地沙盒路径
//@return document路径
- (NSURL *)applicationDocumentsDirectory;
+ (instancetype)shareManager;

@end
